#include "oled_windows.h"
#include "oled.h"

extern char window_num;
extern char oled_line;

extern char key1_status;
extern char key2_status;
extern char key3_status;
//x:0~127  16~110
//y:0~63   0~47

void oled_window0(void)
{
	window_num = 0;
	OLED_Clear();
	OLED_ShowChinese(30,20,0,16,1);//欢
	OLED_ShowChinese(48,20,1,16,1);//迎
	OLED_ShowChinese(66,20,2,16,1);//回
	OLED_ShowChinese(84,20,3,16,1);//家
	OLED_ShowChar(102,20,33,16,1);//!
	OLED_Refresh();
}

void oled_window1(void)
{
	window_num = 1;
	OLED_Clear();
	OLED_ShowChinese(30,0,4,16,1);//验
	OLED_ShowChinese(48,0,5,16,1);//证
	OLED_ShowChinese(66,0,8,16,1);//密
	OLED_ShowChinese(84,0,9,16,1);//码

	OLED_ShowChinese(0,34,4,12,1);//密
	OLED_ShowChinese(12,34,5,12,1);//码
	OLED_ShowChar(24,34,58,12,1);//:
	OLED_Refresh();
}

void oled_window2(void)
{
	window_num = 2;
	OLED_Clear();
	OLED_ShowChinese(18,0,20,16,1);//管
	OLED_ShowChinese(36,0,21,16,1);//理
	OLED_ShowChinese(54,0,22,16,1);//员
	OLED_ShowChinese(72,0,23,16,1);//登
	OLED_ShowChinese(90,0,10,16,1);//录

	OLED_ShowChinese(0,34,4,12,1);//密
	OLED_ShowChinese(12,34,5,12,1);//码
	OLED_ShowChar(24,34,58,12,1);//:

	OLED_Refresh();
}

void oled_window3_1(void)
{
	window_num = 3;
	oled_line = 1;
	OLED_Clear();
	OLED_ShowChinese(18,0,20,16,1);//管
	OLED_ShowChinese(36,0,21,16,1);//理
	OLED_ShowChinese(54,0,22,16,1);//员
	OLED_ShowChinese(72,0,24,16,1);//界
	OLED_ShowChinese(90,0,25,16,1);//面
	
	OLED_ShowChinese(30,20,8,12,0);//修
	OLED_ShowChinese(45,20,9,12,0);//改
	OLED_ShowChinese(60,20,4,12,0);//密
	OLED_ShowChinese(75,20,5,12,0);//码

	OLED_ShowChinese(30,35,10,12,1);//录
	OLED_ShowChinese(45,35,11,12,1);//入
	OLED_ShowChinese(60,35,18,12,1);//指
	OLED_ShowChinese(75,35,19,12,1);//纹

	OLED_ShowChinese(30,50,29,12,1);//删
	OLED_ShowChinese(45,50,30,12,1);//除
	OLED_ShowChinese(60,50,18,12,1);//指
	OLED_ShowChinese(75,50,19,12,1);//纹
	OLED_Refresh();
}

void oled_window3_2(void)
{
	oled_line = 2;
	OLED_Clear();
	OLED_ShowChinese(18,0,20,16,1);//管
	OLED_ShowChinese(36,0,21,16,1);//理
	OLED_ShowChinese(54,0,22,16,1);//员
	OLED_ShowChinese(72,0,24,16,1);//界
	OLED_ShowChinese(90,0,25,16,1);//面
	
	OLED_ShowChinese(30,20,8,12,1);//修
	OLED_ShowChinese(45,20,9,12,1);//改
	OLED_ShowChinese(60,20,4,12,1);//密
	OLED_ShowChinese(75,20,5,12,1);//码

	OLED_ShowChinese(30,35,10,12,0);//录
	OLED_ShowChinese(45,35,11,12,0);//入
	OLED_ShowChinese(60,35,18,12,0);//指
	OLED_ShowChinese(75,35,19,12,0);//纹

	OLED_ShowChinese(30,50,29,12,1);//删
	OLED_ShowChinese(45,50,30,12,1);//除
	OLED_ShowChinese(60,50,18,12,1);//指
	OLED_ShowChinese(75,50,19,12,1);//纹
	OLED_Refresh();
}

void oled_window3_3(void)
{
	oled_line = 3;
	OLED_Clear();
	OLED_ShowChinese(18,0,20,16,1);//管
	OLED_ShowChinese(36,0,21,16,1);//理
	OLED_ShowChinese(54,0,22,16,1);//员
	OLED_ShowChinese(72,0,24,16,1);//界
	OLED_ShowChinese(90,0,25,16,1);//面
	
	OLED_ShowChinese(30,20,8,12,1);//修
	OLED_ShowChinese(45,20,9,12,1);//改
	OLED_ShowChinese(60,20,4,12,1);//密
	OLED_ShowChinese(75,20,5,12,1);//码

	OLED_ShowChinese(30,35,10,12,1);//录
	OLED_ShowChinese(45,35,11,12,1);//入
	OLED_ShowChinese(60,35,18,12,1);//指
	OLED_ShowChinese(75,35,19,12,1);//纹

	OLED_ShowChinese(30,50,29,12,0);//删
	OLED_ShowChinese(45,50,30,12,0);//除
	OLED_ShowChinese(60,50,18,12,0);//指
	OLED_ShowChinese(75,50,19,12,0);//纹
	OLED_Refresh();
}

void oled_window3_4(void)
{
	oled_line = 4;
	OLED_Clear();
	OLED_ShowChinese(18,0,20,16,1);//管
	OLED_ShowChinese(36,0,21,16,1);//理
	OLED_ShowChinese(54,0,22,16,1);//员
	OLED_ShowChinese(72,0,24,16,1);//界
	OLED_ShowChinese(90,0,25,16,1);//面
	
	OLED_ShowChinese(30,20,10,12,1);//录
	OLED_ShowChinese(45,20,11,12,1);//入
	OLED_ShowChinese(60,20,18,12,1);//指
	OLED_ShowChinese(75,20,19,12,1);//纹

	OLED_ShowChinese(30,35,29,12,1);//删
	OLED_ShowChinese(45,35,30,12,1);//除
	OLED_ShowChinese(60,35,18,12,1);//指
	OLED_ShowChinese(75,35,19,12,1);//纹

	OLED_ShowChinese(30,50,31,12,0);//退
	OLED_ShowChinese(75,50,32,12,0);//出
	OLED_Refresh();
}



void oled_window4(void)
{
	window_num = 4;
	OLED_Clear();
	OLED_ShowChinese(30,0,6,16,1);//修
	OLED_ShowChinese(48,0,7,16,1);//改
	OLED_ShowChinese(66,0,8,16,1);//密
	OLED_ShowChinese(84,0,9,16,1);//码

	OLED_ShowChinese(0,34,0,12,1);//新
	OLED_ShowChinese(12,34,4,12,1);//密
	OLED_ShowChinese(24,34,5,12,1);//码
	OLED_ShowChar(36,34,58,12,1);//:
	OLED_Refresh();
}

void oled_window5(void)
{
	window_num = 5;
	OLED_Clear();
	OLED_ShowChinese(30,0,10,16,1);//录
	OLED_ShowChinese(48,0,11,16,1);//入
	OLED_ShowChinese(66,0,14,16,1);//指
	OLED_ShowChinese(84,0,15,16,1);//纹

	OLED_ShowChinese(0,20,14,12,1);//请
	OLED_ShowChinese(12,20,17,12,1);//输
	OLED_ShowChinese(24,20,11,12,1);//入
	OLED_ShowChinese(36,20,18,12,1);//指
	OLED_ShowChinese(48,20,19,12,1);//纹
	OLED_ShowChar(60,20,73,12,1);//I
	OLED_ShowChar(66,20,68,12,1);//D
	
	OLED_ShowChar(0,34,40,12,1);//(
	OLED_ShowChar(6,34,48,12,1);//0
	OLED_ShowChar(12,38,126,12,1);//~
	OLED_ShowChar(18,34,50,12,1);//2
	OLED_ShowChar(24,34,57,12,1);//9
	OLED_ShowChar(30,34,57,12,1);//9
	OLED_ShowChar(36,34,41,12,1);//)
	OLED_ShowChar(42,34,58,12,1);//:
	OLED_Refresh();
}

void oled_window6(void)
{
	window_num = 6;
	OLED_Clear();
	OLED_ShowChinese(30,0,10,16,1);//录
	OLED_ShowChinese(48,0,11,16,1);//入
	OLED_ShowChinese(66,0,14,16,1);//指
	OLED_ShowChinese(84,0,15,16,1);//纹

	OLED_ShowChinese(0,20,10,12,1);//录
	OLED_ShowChinese(12,20,11,12,1);//入
	OLED_ShowChinese(24,20,20,12,1);//中
	OLED_ShowChar(36,20,46,12,1);//.
	OLED_ShowChar(48,20,46,12,1);///.
	OLED_ShowChar(60,20,46,12,1);///.
	
	OLED_ShowChinese(0,34,14,12,1);//请
	OLED_ShowChinese(12,34,21,12,1);//保
	OLED_ShowChinese(24,34,22,12,1);//持
	OLED_ShowChinese(36,34,23,12,1);//手
	OLED_ShowChinese(48,34,18,12,1);//指
	OLED_ShowChinese(60,34,24,12,1);//置
	OLED_ShowChinese(72,34,25,12,1);//于
	OLED_ShowChinese(84,34,26,12,1);//扫
	OLED_ShowChinese(96,34,27,12,1);//描
	OLED_ShowChinese(108,34,28,12,1);//处
	OLED_Refresh();
}

void oled_window7(void)
{
	window_num = 7;
	OLED_Clear();
	OLED_ShowChinese(30,0,12,16,1);//删
	OLED_ShowChinese(48,0,13,16,1);//除
	OLED_ShowChinese(66,0,14,16,1);//指
	OLED_ShowChinese(84,0,15,16,1);//纹

	OLED_ShowChinese(0,20,14,12,1);//请
	OLED_ShowChinese(12,20,17,12,1);//输
	OLED_ShowChinese(24,20,11,12,1);//入
	OLED_ShowChinese(36,20,18,12,1);//指
	OLED_ShowChinese(48,20,19,12,1);//纹
	OLED_ShowChar(60,20,73,12,1);//I
	OLED_ShowChar(66,20,68,12,1);//D
	
	OLED_ShowChar(0,34,40,12,1);//(
	OLED_ShowChar(6,34,48,12,1);//0
	OLED_ShowChar(12,38,126,12,1);//~
	OLED_ShowChar(18,34,50,12,1);//2
	OLED_ShowChar(24,34,57,12,1);//9
	OLED_ShowChar(30,34,57,12,1);//9
	OLED_ShowChar(36,34,41,12,1);//)
	OLED_ShowChar(42,34,58,12,1);//:
	OLED_Refresh();

}


void oled_window20(void)
{
	OLED_Clear();
	OLED_ShowChinese(30,0,16,16,1);//提
	OLED_ShowChinese(48,0,17,16,1);//示
	OLED_ShowChinese(66,0,18,16,1);//信
	OLED_ShowChinese(84,0,19,16,1);//息

	OLED_ShowChinese(10,30,4,12,1);//密
	OLED_ShowChinese(22,30,5,12,1);//码
	OLED_ShowChinese(34,30,6,12,1);//错
	OLED_ShowChinese(46,30,7,12,1);//误
	OLED_ShowChar(58,30,33,12,1);//!
	OLED_ShowChinese(70,30,14,12,1);//请
	OLED_ShowChinese(82,30,15,12,1);//重
	OLED_ShowChinese(94,30,16,12,1);//试
	OLED_Refresh();
}

void oled_window21(void)
{
	OLED_Clear();
	OLED_ShowChinese(30,0,16,16,1);//提
	OLED_ShowChinese(48,0,17,16,1);//示
	OLED_ShowChinese(66,0,18,16,1);//信
	OLED_ShowChinese(84,0,19,16,1);//息

	OLED_ShowChinese(20,30,4,12,1);//密
	OLED_ShowChinese(32,30,5,12,1);//码
	OLED_ShowChinese(44,30,8,12,1);//修
	OLED_ShowChinese(56,30,9,12,1);//改
	OLED_ShowChinese(68,30,12,12,1);//成
	OLED_ShowChinese(80,30,13,12,1);//功
	OLED_Refresh();
}

void oled_window22(void)
{
	OLED_Clear();
	OLED_ShowChinese(30,0,16,16,1);//提
	OLED_ShowChinese(48,0,17,16,1);//示
	OLED_ShowChinese(66,0,18,16,1);//信
	OLED_ShowChinese(84,0,19,16,1);//息

	OLED_ShowChinese(0,30,18,12,1);//指
	OLED_ShowChinese(12,30,19,12,1);//纹
	OLED_ShowChinese(24,30,10,12,1);//录
	OLED_ShowChinese(36,30,11,12,1);//入
	OLED_ShowChinese(48,30,12,12,1);//成
	OLED_ShowChinese(60,30,13,12,1);//功
	OLED_Refresh();
}

void oled_window23(void)
{
	OLED_Clear();
	OLED_ShowChinese(30,0,16,16,1);//提
	OLED_ShowChinese(48,0,17,16,1);//示
	OLED_ShowChinese(66,0,18,16,1);//信
	OLED_ShowChinese(84,0,19,16,1);//息

	OLED_ShowChinese(0,30,18,12,1);//指
	OLED_ShowChinese(12,30,19,12,1);//纹
	OLED_ShowChinese(24,30,29,12,1);//删
	OLED_ShowChinese(36,30,30,12,1);//除
	OLED_ShowChinese(48,30,12,12,1);//成
	OLED_ShowChinese(60,30,13,12,1);//功
	OLED_Refresh();;
}

void oled_window24(void)
{
	OLED_Clear();
	OLED_ShowChinese(30,0,16,16,1);//提
	OLED_ShowChinese(48,0,17,16,1);//示
	OLED_ShowChinese(66,0,18,16,1);//信
	OLED_ShowChinese(84,0,19,16,1);//息

	OLED_ShowChinese(0,30,18,12,1);//指
	OLED_ShowChinese(12,30,19,12,1);//纹
	OLED_ShowChinese(24,30,10,12,1);//录
	OLED_ShowChinese(36,30,11,12,1);//入
	OLED_ShowChinese(48,30,33,12,1);//失
	OLED_ShowChinese(60,30,34,12,1);//败
	OLED_Refresh();
}

void oled_window25(void)
{
	OLED_Clear();
	OLED_ShowChinese(30,0,16,16,1);//提
	OLED_ShowChinese(48,0,17,16,1);//示
	OLED_ShowChinese(66,0,18,16,1);//信
	OLED_ShowChinese(84,0,19,16,1);//息

	OLED_ShowChinese(0,30,18,12,1);//指
	OLED_ShowChinese(12,30,19,12,1);//纹
	OLED_ShowChinese(24,30,29,12,1);//删
	OLED_ShowChinese(36,30,30,12,1);//除
	OLED_ShowChinese(48,30,33,12,1);//失
	OLED_ShowChinese(60,30,34,12,1);//败
	OLED_Refresh();;
}

